public class Date {
    private int year;//年
    private int month;//月
    private int day;//日

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
    /*public Date(){
        this.year = 2024;
        this.month = 9;
        this.day = 20;
    }*/

   /* public Date(){
       this(2024,9,20);
    }*/
    public Date(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    /*public void setDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }*/

    public void printDate(){
        System.out.println(this.year+"/"+this.month+"/"+this.day);
    }
}
